home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2006 April / DPPRO0406DVD.ISO / Essentials / Programming / Eclipse SDK / eclipse-SDK-3.1.1-win32.exe / eclipse / plugins / org.eclipse.help.webapp_3.1.0 / basic / advanced.inc next >
Encoding:
Text File  |  2005-09-29  |  2.1 KB  |  69 lines

  1. <%--
  2.  Copyright (c) 2000, 2004 IBM Corporation and others.
  3.  All rights reserved. This program and the accompanying materials 
  4.  are made available under the terms of the Eclipse Public License v1.0
  5.  which accompanies this distribution, and is available at
  6.  http://www.eclipse.org/legal/epl-v10.html
  7.  
  8.  Contributors:
  9.      IBM Corporation - initial API and implementation
  10. --%>
  11. <form action="searchView.jsp" method="get" accept-charset="UTF-8" target="_self">
  12.  
  13.     <table border="0" cellpadding="0" cellspacing="0">
  14.         <tr>
  15.             <td>
  16.                 <label for="searchWord"><%=ServletResources.getString("SearchExpression", request)%></label>
  17.             </td>
  18.         </tr>
  19.         <tr>
  20.             <td nowrap>
  21.                 <input type="text" name="searchWord" id="searchWord" value='<%=data.getSearchWord()%>' maxlength=256 alt='<%=ServletResources.getString("SearchExpression", request)%>' title='<%=ServletResources.getString("SearchExpression", request)%>'>
  22.                     <input type="hidden" name="maxHits" value="500" >
  23.                     <input type="hidden" name="scopedSearch" value="true" >
  24.                 <input type="submit" value='<%=ServletResources.getString("GO", request)%>' alt='<%=ServletResources.getString("GO", request)%>' title='<%=ServletResources.getString("GO", request)%>'>
  25.             </td>
  26.         </tr>
  27.         <tr>
  28.             <td>
  29.                 <%=ServletResources.getString("expression_label", request)%>
  30.             </td>
  31.         </tr>
  32.         <tr>
  33.             <td>
  34.                 <hr>
  35.             </td>
  36.         </tr>
  37.         <tr>
  38.               <td>
  39.                   <b>
  40.                 <%=ServletResources.getString("Select", request)%>
  41.                 </b>
  42.             </td>
  43.         </tr>
  44.                   
  45. <% 
  46. TocData tocData = new TocData(application, request, response);
  47. for (int toc=0; toc<tocData.getTocCount(); toc++)
  48. {
  49.         //if(!tocData.isEnabled(toc)){
  50.             // do not show
  51.         //    continue;
  52.         //}
  53.     String label = tocData.getTocLabel(toc);
  54.     String checked="checked=\"yes\" ";
  55.     if( data.isSearchRequest() && !data.isTocSelected(toc) ){
  56.         checked="";
  57.     }
  58. %>
  59.           <tr>
  60.               <td nowrap>
  61.                 <input type="checkbox" name='scope' id="checkbox<%=toc%>" value='<%=tocData.getTocHref(toc)%>' <%=checked%> alt="<%=label%>"><label for="checkbox<%=toc%>"><%=label%></label>
  62.             </td>
  63.         </tr>
  64. <%
  65. }        
  66. %>
  67.     </table>
  68.  </form>
  69.